Transcription: The processor executes a program until you press a key on the keyboard or move the mouse. A hardware event generates a corresponding hardware interrupt, and the processor switches to execution of the interrupt handling routine. Then it returns back to the interrupted program until another interrupt request comes.